#!/bin/bash

set -x

# dir="/mnt/yanyi/ceph/build"
# cd ${dir}
mkdir /data/mgr.admin

# generate keyring of mgr
bin/ceph --cluster ceph auth get-or-create mgr.admin mon 'allow profile mgr' osd 'allow *' > /data/mgr.admin/keyring

# start mgr service
bin/ceph-mgr -i admin
